package com.jxl.domain.convert;

import com.jxl.domain.entity.SubjectLabelBO;
import com.jxl.domain.entity.SubjectMappingBO;
import com.jxl.infra.basic.entity.SubjectLabel;
import com.jxl.infra.basic.entity.SubjectMapping;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectMappingConvert {

    SubjectMappingConvert INSTANCE = Mappers.getMapper(SubjectMappingConvert.class);

    /**
     * 类转换
     * @param subjectMappingBO
     * @return
     */
    SubjectMapping convertBoToSubjectMapping(SubjectMappingBO subjectMappingBO);

    /**
     * 类转换
     * @param
     * @return
     */
    List<SubjectMappingBO> convertToSubjectMappingList(List<SubjectMapping> subjectMappings);

}
